/*eslint no-unused-expressions: "error"*/
//默认 { "allowShortCircuit": false, "allowTernary": false } 选项的错误代码示例
0

if(0) 0

{0}

f(0), {}

a && b()

a, b()

a() && function namedFunctionInExpressionContext () {f();}

(function anIncompleteIIFE () {});

injectGlobal`body{ color: red; }`

doSomething();
"use strict"; // this isn't in a directive prologue, because there is a non-directive statement before it

function foo() {
  "bar" + 1;
}

class Foo {
  static {
    "use strict"; // class static blocks do not have directive prologues
  }
}